<template>
  <view class="container">
    <rich-text :nodes="content"></rich-text>
  </view>
</template>

<script setup>
import { ref, onMounted } from 'vue'
import { onLoad } from '@dcloudio/uni-app'

const content = ref('')

onLoad((options) => {
  if (options.content) {
    content.value = decodeURIComponent(options.content)
  }
})
</script>

<style scoped>
.container {
  padding: 20rpx;
}
</style> 